package com.sskj.trafficcontrol.service.impl;

import com.sskj.trafficcontrol.dao.TcControlCitysDAO;
import com.sskj.trafficcontrol.model.pojo.TcCitys;
import com.sskj.trafficcontrol.model.pojo.TcControlCitys;
import com.sskj.trafficcontrol.service.TrafficControlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : zhao kuo
 * @date : 2019/1/29 21:39
 * @description :
 */
@Service
public class TrafficControlServiceImpl implements TrafficControlService {

    @Autowired
    private TcControlCitysDAO tcControlCitysDAO;

    @Override
    public List<TcControlCitys> getTrafficControlCitys() {
        return tcControlCitysDAO.getTrafficControlCitys();
    }

    @Override
    public void addCitys(List<TcCitys> list) {
        tcControlCitysDAO.addCitys(list);
    }

    @Override
    public TcCitys findByCityName(String reqCityName) {
        return tcControlCitysDAO.findByCityName(reqCityName);
    }
}
